Make DB asynchronous