add the script for online database