add requireDatabase option