small fix on sql files and identify the places that will need db log creation