Databases will be now decompressed if necessary. Also added some documentation.