Changed to use postgresql for database instead of mysql