s3:dbwrap: move db_open() to a file dbwrap_open.c of its own.