Mital added database code