Publish creates an extra Database and Database Connection

What are your project target settings? Do you havens database defined there? This will then become your default “db” connection.

If you have a custom database connection you shouldn’t choose a default database in your project target settings.