fixed effect commands to use english
fixed variable databases not being closed properly