Set API to use alternative db if required