added some mysql stuff