database finishing touches