Implement db connection, db queries, data entities