Preparing db collection to substitue WPCollection