added demo code to access mysql db