Update RE
Add open mysql subroutine