Corrected an error when initializing DB