new script for db