set redis as main database