fix to few arguments in usedonly query
readded value_id as value and updated the queries
sql code style
Merge pull request #25 from cboelter/fix/filter-arguments

Fix the Filter-Error on usedonly mode