Models, scripts, db

Models done, including connections. Currently writing scripts to
initialise objects. db working.