Changed sql skripts to new version