Added create and populate sql code