added scripts for database interaction