Corrected failing INSERT-queries

(fixes issue #11 on github and FS#1850 on https://bugs.flyspray.org)
Merge pull request #14 from zyberspace/issue11

Corrected failing INSERT-queries