modified create_coy to force db settings