Added test case for sync routines
make db.copy to accept existing db handle or filename
added finalizeSync to Statement object