[FEATURE] Get and set last payment hash in database.