Fixed DB error with no db configured