Marcin: Silly JavaScript mistake now fixed
Marcin: Publishing now works and updates the database correctly