Added more explicit definitions for including connection.php.
Without them, it was causing errors on an nginx setup (not sure of the cause)
Added missing POST argument for clicking on the page number buttons.
This fixes the filter resetting on each page change.