put back the incorrectly deleted mysql select db part