trying to correct a db related async issue in dbconnect and authentication