Endnote alternatives?

Hey, since many of you guys use Endnote or similar products here,  I am just curious if anyone have any recommendation for software/website that has similar function as Endnote?

I am looking for something that can search online database reliably, and can build and preserve a personal database safely. 

Thanks a lot. 

Tony