Vera and Fredrik Added some more complex SQL queries

Added an auto matching on exact how many you have yourself in your
profile. Also added one that you can change the COUNT value.