Fixed choosing wrong database in Model.all