Use ash script to SQL communication,

install mysql client:

opkg update
opkg install mysql-server
nano mysql.sh
#!/bin/ash
mysql --host=192.168.0.20 --user=root --password=password books<< EOF
INSERT INTO authors (id,name,email) VALUES(4,'ash','ash@yahoo.com');
EOF