bug fix in controller
Merge pull request #19 from girb0t/database

bug fix in controller