Fixed populate database deleting things error. Temporary fix.