found the problem of interference: the database references for single object and array were not separated