Pure Erlang MySQL protocol implementation