the script for the database