Added primative functionality to a.sql.