Add training user database tools and tests