Fixed wrong 'database failed' errors and refactored variables in standings to avoid name collisions.