getting db for checking on canvas