created sql file to meet postgresql syntax