Extend database API with helper methods