Uses SQL to read and store data.