Faulty call to update db