added user and api_key models