streamlined sql file