Modified docs index to populate facilities and doc types controls from database rather than being hard coded.