Database API usage