Changed databse from sqlite to postgresql.