Replace db-based model with python objects one.