update database stuff