Only write database locations if they do not exist
Add database