Removed ref id column from view
moved DB specific details in db-config file