Creating a chat app using a relational database