made the chat minimally functional w/ new db