Are you sure this shouldn't be dbname() ?