Inserted output callback and improved backup and restore by skipping .wal files