Modifications on sql files and add logs.sql