master assignment logic completed

- helper method to update the database with master status assignment
- index& controller to get and store the new master id in
params[:select_master_id] which will be used to associate workers in
worker logic