nameing changes and introduction to sqlalchemy orm for database operations