conmmand window messages and commands scanged. Database settings added