Script for database