corrected update balance fail due to extra ' in query