Create helper functions for common database access patterns