auto select database settings