added trim to slug
added term table to sql installation script