Add new function to create database