Added models for a lot of database tables, and made some minor tweaks to columns names and general fixes.