Improving database connection handling

Adding checks for sent headers
Changing mysqldump options
Only calling destructor in userspace for pages or classes that extend pages
Cleaning Up