Fixed SqlAlchemy model definitions.

Fixed errors caused by splitting the models module.
Added models/meta.py to include db-session and base class.