Init database script fixed