what is the proper way to insert an object with a foreign key in sqlalchemy?,transaction.commit()