Change database api to return diferent responses based on plan