Implemented Database::query.
Added ArrayCursor stub.