removed db writes