Install postgres, set up db's
Convert sqlite queries to postgres syntax
Fix all the broken tests
Merge branch 'postgres' into dev