Changed some mysql querrys