Made a lot of the view[item] code more modular

fixed error messages in db handler
added checking for employee_ID before editing or deleting