Async

Make all the database operations async