fix require mapred
Fixed db schema issues