changed provider to db