Added models and database stuff.