Update check.sh

added parameter for DB connection info