service: add missing flask imports