SQLite database for chat messages