Connect chatroom to database