Fixed foreign keys in user.py. Now using SafeConfigParser
Flask-sqlalchemized the project. Should be simpler going forward.