Fixed drag and drop

Drag and drop now updates to the database