Remove unnecessary $db variable