added sql and some missing files