Database operations in RoomManager

Edited: RoomManagerImpl, RoomManagerImplTest