fixed pagination, sitemanager now calls dbmanager function that opens/creates, writes, and closes a file