[server][data] Avoid incomplete .sql files from being created.
Merge pull request #871 from project-hatohol/avoid-imcomplete-server-sql-2

[server][data] Avoid incomplete .sql files from being created.