Huge refactoring. Provided lib-task for rake db:populate. Refactored all code