the update query still isn't quite right