1. Fixed small bug in dbScript