Code optimisation of first database blocks and apps configuration