Fixed database init script