Where can I find a database with a list of all magic cards?
as an alternative, you can also get the full set of cards in JSON format - including all sets, languages, printings and detailed information - from this website: http://mtgjson.com/

This website also provided information to work with its associated site for serving images, found here: http://mtgimage.com. Unfortunately however, subsequently this website has been shut down by WotC.

this websites appears to be designed specifically for developers, with explanations of what each property in the JSON objects means.