Initial SQL query workinggit status