I am trying to make a search engine.I want to know that How can I get URLs in start to index in my Database? For example , How google got the URLs of websites for crawling?
You could start with an existing Index and use it to build your own index. dmoz is a human editable index: http://www.dmoz.org/