Adding persistence code for splitting categories/topics in the db.