Add db.open property, and switch async tests to use promises