SQL implementation for system settings repository