SQL formatting moved to separate file.