Fixed mysql stuff