ampache: Fixed bandwidth query and fixed table references in several queries