Register added
MySQL function small change