added checkIfEmpty function
moved finances form input checking into separate function
cleanup code finances.php
moved solving item query into separate function setShoplistItemSolveDate
put updating of shoplist score in separate function updateShoplistScore
added comments to functions
added checkIfFalse function for checking failed queries
changed name from checkIfFalse to checkIfQueryFailed
changed  to
moved updating balances into separate function
moved spend processing into function updateFinances
cleanup updateFinances function
put updating balance of user in separate updateBalanceUser function
put updating balances of payers in separate updateBalancePayers function
put formatting posted costs in separate formatCost function
put storing new spend query in separate function
added comments to all new functions