Fixed bug in 'new_report_from_json' function

Also added the sqlite3 test db to the gitignore file