refactored pg analytics fns to a diff file
update req ct chart based on tbl row click
refactored the load req charts part