Flux pinning and improved critical current density in superconducting boron doped diamond films