-cleaned up database related code, startedlaying out groundwork for
rooms with multiple servers