add codes to create database and table for those who don't have it