Use $default_database instead of $user

In server::database and server::role when talking to PostgreSQL use the
$default_database instead of $user variable as $user may vary between
platforms.