Added test case for flat fields in SQL
Added flat fields to all rows and fixed tests
Merge pull request #76 from lwyszomi/flat_field_in_sql_test

Added test case for flat fields in SQL