changed the schema to better represent indexes
modified compile flags and fixed naming
removed trailing comma on database schema indexes
modified the schema compiler to handle indexes beter and generate c++ code
moved the sqlite3 initilization of settings struct to a constructor from an external function