added sql files and reorganized a bit