added the database script as a ref