added file exists check for .sqlite table