setup database code