Added provider mode to simpledb