Writing a Firebase Clone with PostgreSQL and Node.js (Part I)