Travis: Initiating build for commit '3bd9c0b2d09a0654540a1f86601416bb6074bdbe' on branch 'master': refs #1486 we do not want to have sql statements in controller, api and plugin class. Put them in a model, makes it also better testable