refactoring database schema, moving command, host, physical_host, destination and source to command log