Service and persistence config