controller for database
Merge pull request #9 from ricardohnn/database_controller

controller for database