All data access is being done via SQLAlchemy

Removed all manual sql access code. All DB stuff is being
done via SQLAlchemy.