sizeOfDatabase fixed