Moved register-run to db and wrapped as remote run