fix several bugs in database + create some test data
Merge pull request #10 from pcrouillere/pcrouillere/sql_testdata

fix several bugs in database + create some test data