fixed db construct error when options is null