added folder structure.
revamped database class
tested db class