added frequency option to database plugin.  fixed up zone a bit.