msfconsole not importing new custom private modules into the db

After following every importation steps from the rapid7 doc correctly msfconsole is still not importing my private modules into the database. The steps I am taking are mkdir -p /root/.msf4/modules/exploits/name/name then I copy with cp -r my code from the dir where it is and after that I ran updatedb.