Silex app which saves input queries to database