Changed database from mysql to postgresql