build epub based on sqlite data