sqlite3 to postgresql

Changed from sqlite3 to postgresql to be able to deploy to heroku