Add functionality to create database if not defined