finised create tables and insertion scripts
finished triggers and functions
finished mistakes in create tables