New script for database