today's balance now obtains all the data from the database