queries db updates scope after form click