move db interactions to async task and add db exists test
Merge pull request #5 from kousen/9-async-db

move db interactions to async task and add db exists test