Implement database interface