Refacted insertion into vdorders. Added __db.sql

Instead of bind all values I've just created an array before the
execution to better manage them and for a better readability.
Also uploaded the updated ::db.sql (core/__db.sql)