added controllers and some changes in service to populate database locations and flw