High level database interface