add latest sql file + reformated all code