Database connection

Reads and writes CodeItem to Heroku PostgreSQL database. Implementing
this has been literally hell.

Connection takes about 3 minutes for some reason. Working on it.