Optimized the slowest queries (Item Prices, Deals)

Added SQL query timing to the defstmt macro.