SQL queries for Monthly Book of Business