only load db if it exists