removed useless intents
refactored some code
implemented menu.
moved database ffolder to models