Locked out of my own database through invariant() failure
Deleting .ns file in data/db worked for me. 

Invariant failure usually occurs if mongo is not been shut down properly, and improper shutdown will corrupt .ns (namespace that mongo creates for each database) file. So deleting .ns file will solve the issue.