init database by script