Event drag and drop/resizing updates the database. Currently does not prevent sql injections... TODO...