added mysql interaction