Proposed fix for #845
Merged a slightly different fix. Thanks for bringing this to my attention.

APSWDatabase _connect() without also making a call to _add_conn_hooks().

This was resulting in the pragmas keyword for **init** being ignored as the call to _set_pragmas  was never made.

I've added test cases that illustrate my original problem and added the call to _add_conn_hooks() to APSWDatabase._connect().
