removing the constant updating of the db