add script for database