swapped db and added test controller