Db abstractions

Adding Collections & fields with primitive field type & validation support.