create database and tables