fixed production error where there apparently was no db