get database structure api