A ton of mysql detection code

configure file clean up: perl no longer looked for, sqlite looked for,
and new mysql checks