getting some outputs! needs to check db first before create new entry to avoid duplications