Added the database interface