fixed no db problem