editing targets now works completely and actually edits database