db update and stuff