Changed db from sqlite to postgresql