Fix InActive Users SQL Query

Fix some formatting on SQL statements and fix the inactive users query
to be correct.
Update gitignore