In a skillet, heat oil over medium heat. Add onion and celery and cook, stirring often, till soft, about 5 minutes. Add garlic, basil, thyme, salt and pepper and cook, stirring for about 1 minute. Stir in ketchup, water, balsamic vinegar, brown sugar, and mustard. Transfer to slow cooker. Add lentils and mix well.