On fixed points in quasi partial $b$-metric spaces and application to dynamic programming