reconstruct database classes