Added level 2 string substitution

Added string substitution for database endpoint to common.php.