Creating a chat app using a non relational database