finalize db layer abstraction for Wallet module