database sample code added
db code test case added