Hi Michael
You are absolutely right for pointing out this important issue about losing prototype chain! I wrote about this problem at the very end of the article and now added optimal solution by using method of Constructors calling themselves.
Thanks!
Thank you for your feedback, I have decided to create a javascript based solution for those who don't have database
with existing hosting plan or not having experience with server-side languages :)