Updated DB call, Json issues and DB connect