Simple database interface