retrieve id of sqlite data