[WIP] Create helper functions for common database access patterns