create database on api call