Added new db init function which helps in testing
Controller tests