Max size should not always be 1 MB
Respect cache refresh strategy when checking existing urls
Remove dependency on PDO->rowCount() as it's not supported in sqlite