gradle build and license applied
some cleanup
Added sql schema