Updated tool to genertate gem files, updated database handler for gem data.