Reorganize code around database
Move around the implementation of the code around database manipulation. To support pdsl/rdiffweb#69
Edited by Patrik Dufresne
Move around the implementation of the code around database manipulation. To support pdsl/rdiffweb#69