Db driver refactor WIP.