automatically choose database name based on connection string