added chat to database model