changed variables for db connection to static
not sure if closing db on destruct is the right way -- commenting this out for the moment.
added stmt->free_result()