Changed update to prepared statement