src/database.php: Uncomment and tidy-up implementation of 'selectExactlyOne', which expects to find exactly one matching row, and if not, throws an exception.