full java implementation, use mysql jdbc connector