Added pic controller and made some db changes