removed db save function