create database tables when connected to database sucessfully