created osmap.module

created osmap.module and wrote a function for insert