refactored init script and added MySQL password prompting and storing