fix SECOND function for H2
fixed bug parsing accept header
fix decimal handling for many queries