fixed the function, package and type.

TODO: implemented table, view and trigger.
view and table generated.

generated the table, view and triggers.

TODO: add generate of constraints and index.
added the insert scripts for preload tables.