Added routines for interval and defaultId (MySQL)

Added routines for interval and defaultId (MySQL)