It's extremely unlikely that there is anything interesting or novel in the optimisation of a small SaaS SQL