create database and create tables