fixed postgres issues, added sleep time for pgsql to load before creating users