Fix sqlite.sql wrt to vecna's changes.
DO print informations about the errors happening on database.
Fix tests for new generation fields.