Fix for db size error bug. Resolves #18