added save to DB function and call. get data ready to be bound to DB. just need data to bind.
also moved processAction to the main folder because it is not a Class and changed its name to processSave. changed this in JS code in save function.
added inventoryDB class to get inventory data. don't know yet how i can use this but i will at least have something to start with then i am ready to start using. 
need more time before saving inventory data can be codded because i don't know how i can prevent overwriting and creating redundant data.
saving to database
Merge origin/master