Separate due contacts lookup into a stored procedure for better performance and to facilitate the pulling of additional contacts