Use the new errors package. Remove the old deprecated apperrors and db packages.