Added js doubleclick function to change working status and update db.