Create a new reference database and automatically add the default backends:
location to store the database pointer, if opened. Set to NULL if the open failed.
the repository
0 or an error code