Fix database error in development

Fixes class loading error when pulling objects back from the database.