src direcotry,and sql script

Moved source code to src direcotry and added sql script