[#2828] Use a default Database for code generation, in the absence of an explicit database