move create_cmd() utility out of DB_Command