added mysql implementation