Split database into a writer and reader