added new query for amounts owed to the user. Changed names to appropriate Java names.