Removed wrong echo
Added destructor to close MySQL connections to avoid too many open connections on some shared webhosting accounts