sql script to init database