Find and store specific filename type into MyQL