Fixed some model errors. Created script to populate db.