Moved registration to db module, not api