Commit queries now working