added database test case for phpunit