Added local configuration and replaced db.fetch() method
Added delete support
Added query support
Expanded query criteria for delete