Progress on async code
Database initial work.