query database successfullygit status