database code started...