Use parameters for MySQL credentials
Code style fixes