* Implement GPG API * Better handle error * Apply review recommendation + simplify database operations * Remove useless comments