added database name to query dsn. fixes #4