Adds overlap checking to cassandra and sqlite

This pull request adds overlap checking to finalize file endpoints.