MAINT: Refactor assignment of $database and $quiet

Removes unneeded if statement to make boolean assignment.