create database interface