upgrade: Use raw SQL for epoch check.

Avoids a potential model error when fields are added
to the KegbotSite model (and Django ORM tries to
select them explicitly).