Fixed some column names in SQL queries to go with recent fixes to the database schema.
Basic zone focus model now reads its parameters from the database.