made prepared statements a bit more efficient in MySqlgroup and mysqlevent
found weird bug with edit group in the maintenance page, but could not replicate