add unit test and dbproxy