fixed the import function from current database.
restructured the api server , using express