Low-level database API access functions