Completion of library

First complete version. Allows to define custom providers extending DBProvider class.