first attempt at db updating