Changed DB to postgresql from MySQL