create database file and fix interface