changed db from mysql to PostgresQl