Updated create_db to work asynchronous