Changed db_session to db.session