store room map in database