Created roomList template, added helper function  to access database