Connect to the database asynchronusly