make some change, and code dbaccess.
but not tested yet.