Added mysql version of the implementation