this should fix racecondition by waiting for the db to be ready before setup