Fixed buildings db update issue.