make ChatStore typeclass and sqlite3 instance