refactored class structure for model and db
Merge branch 'master' of github.com:laposa/onxshop