scaffold patterns for defining a database connector for use with models