change to async database

DO NOT MERGE YET