FUCK YEA!

Finally fixed query statements and home page working. Invoice list
displays perfectly fine now.