moving db check and ensuring mysql secure installation.