Database defination