added mysql functionality