Refactoring of configs. Extracting db config in separate file, included in main and console configs.
Adding validation to text inputs, and some refactoring of connection angularjs to the inputs.