setup database script