added mysql database code