changed Server db connection  to be async.