db read almost working