wait for a while when checking the sqlite database (albatoss could be still uploading to s3) @TODO fix it without sleep