update db stuff