SQLAlchemy models created

The models along with their associations have been created. Additioanally,
the backend routines to use them are gradually being added.