Made quite a few changes to the SQL statments that existed. You can now
also get the account by ads.