add api features and database