Moved models to their own file.

Created environment file that requires the models
and connects to the right database.