Renaming link to global_stats
Changing log level to warning
Updating syntax due to sqlalchemy update