added if clause to check wether mysql has been secured or not