Writing common info to db using SQLAlchemy