fixing async calls and return objects

- moving the delete/create database code into async methods
- fixing the objects returned to the test runner