all test pass, optimized database