[FEATURE] Get and set last hash in database.

[FOLD] Remove old last payment hash http endpoints.