Improved File class API.

All member variables are private. Getters return const references.
Add full constructor to file.
Comparison operator needs to be const method in order to work with STL.
Implement DB layer.

Preliminary work. Changed API a bit, still not final version but now we
have working implementation, though very crude and not robust.