Fix stack create and db_api's