cleanup old sql file, add init api script