
Remember that the array you are defining has two defaults before you get into it! It's not simply $databases = array() as Drupal starts you off, it is a deeply nested array and you might as well start off like this:
<?php
$databases['default']['default'] = array( ... );
?>