added folder structure
added base controllers
added data model
base functionality for working with db
some fixes