Corrected failing INSERT-queries

(fixes issue #11 on github and FS#1850 on https://bugs.flyspray.org)