added custom field and create database if its not there already