only select database if it's not the default