Page/upload factories refactored to store upload details in DB for editor images & custom field images.