Added code to create SQL config user
Small refactoring