helper for deciding which DB to use