completely removed mysql specific code