Changing get to retrieve from db