continuing work on database

changed SQL code class to allow easier adaptation of schema changes
during development, added initial way of creating a cat object from the
returned SQL results