Update database.js

major fixes including a fix for the bug where if someone pmd the bot it would add the room name PM to the rooms section of the db causing errors and crashes