First Working version
sql scripts moved