Added precedure to test if user has claimed a segmentation task, changes made to Middleware replaceing excess code with a single call to a Database Acess Object calling this procedure