removed db code