Uses postgresql database instead of mysql