Change few sql files
Fix many methods. Add comments to thoses methods that are alredy fixed.
Fix almost all methods.