added script for database