added basic db script to access mysql database.